module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset',
    [
      '@babel/preset-env',
      {
        useBuiltIns: 'usage',
        corejs: 3,
      },
    ],
  ],
  plugins: [
    '@babel/plugin-proposal-nullish-coalescing-operator',
    '@babel/plugin-proposal-optional-chaining',
    // '@babel/plugin-transform-runtime',
    [
      'component',
      {
        libraryName: '@cmiot/iota-ui',
        styleLibraryName: '~theme',
        camel2Dash: false,
      },
      '@cmiot/iota-ui',
    ],
    [
      'component',
      {
        libraryName: 'element-ui',
        styleLibraryName: '~theme',
      },
      'element-ui',
    ],
  ],
}
